﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ConsoleApp1;
namespace WindowsFormsApp1
{
    static class Program
    {
        
        public static OrderService orderService1;
        public static Order chosenOrder;
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            List<OrderDetail> details;
            List<OrderDetail> details1;
            Goods A;
            Goods B;
            Goods C;
            Customer c;
            Customer c1;
            Customer c2;
            Time time;
            Time time1;
            //OrderService orderService1;
            details = new List<OrderDetail>();
            A = new Goods("A", 200);
            B = new Goods("B", 100);
            C = new Goods("C", 50);
            details.Add(new OrderDetail(A, 10));
            details.Add(new OrderDetail(B, 20));
            details1 = new List<OrderDetail>();
            details1.Add(new OrderDetail(A, 10));
            details1.Add(new OrderDetail(C, 50));
            c = new Customer("Bob", true);
            c1 = new Customer("Alice", true);
            c2 = new Customer("Cary", false);
            time = new Time(2023, 3, 22, 19, 53);
            time1 = new Time(2022, 2, 5, 6, 23);
            orderService1 = new OrderService();
            chosenOrder = new Order();
            //orderService1.AddOrder(c1, details, time);
            //orderService1.AddOrder(c, details1, time);
            //orderService1.AddOrder(c2, details1, time1);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
